package utilcollection;

import java.util.ArrayList;

public class CollectionDataTest {
    public static void main(String[] args) {
        ArrayList<String> ac=new ArrayList<>();
        ac.add("China");
        ac.add("Taiwan");
        ac.add("HongKong");


        String[] c=ac.toArray(new String[0]);
        for (String s :c) {
            System.out.println(s);
        }

    }
}


